Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the get_policy API in the index_management plugin #633

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

saimedhi
Copy link
Collaborator

Description

Updated the get_policy API in the index_management plugin to allow the policy_id argument as optional

Issues Resolved

Closes #629

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c4e53d4) 72.12% compared to head (783869d) 72.14%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #633      +/-   ##
==========================================
+ Coverage   72.12%   72.14%   +0.02%     
==========================================
  Files          89       89              
  Lines        7939     7935       -4     
==========================================
- Hits         5726     5725       -1     
+ Misses       2213     2210       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…e policy_id argument as optional

Signed-off-by: saimedhi <saimedhi@amazon.com>
@dblock
Copy link
Member

dblock commented Dec 15, 2023

Can we add a test for this?

Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saimedhi Is it not possible to generate the plugin endpoints instead of manually fixing them?

@saimedhi
Copy link
Collaborator Author

@saimedhi Is it not possible to generate the plugin endpoints instead of manually fixing them?

Yes @VachaShah, we need specifications and a few modifications to the generator to generate plugins in the plugins folder.

@VachaShah VachaShah merged commit 2ab3a40 into opensearch-project:main Jan 11, 2024
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add support for returning all index policy objects
3 participants